
<div class="title"><?php echo __('member list'); ?></div>

<div class="naujiena">
    <table>
    <thead>
    <tr>
    <th>Id</th>
    <th><?php echo __('Name') ?></th>
    <th><?php echo __('Surname') ?></th>
    <th><?php echo __('E-mail') ?></th>
    <th><?php echo __('Age') ?></th>
    <th><?php echo __('Town') ?></th>
    </tr>
    </thead>
    <tbody>
    <?php foreach ($members as $member): ?>
    <tr>
        <td><?php echo link_to($member->getId(), 'member/show?id='.$member->getId()) ?></td>
        <td><?php echo $member->getName() ?></td>
        <td><?php echo $member->getSurname() ?></td>
        <td><?php echo $member->getEmail() ?></td>
        <td><?php echo $member->getAge() ?></td>
        <td><?php echo $member->getTown() ?></td>
    </tr>
    <?php endforeach; ?>
    </tbody>
    </table>

    <?php echo link_to (__('create'), 'member/create') ?>
</div>